<template>
  <GTable ref="table" api="dcDeliveryOrderDtl/selectDcDeliveryOrderDtlList" :apiParams="apiParams" :hasCheck="true" :hasEdit="true" :tmsShowFilter="false" :searchBox="false" :tableSettingVisible="false" :otherHeight="340" :columnSource="columnSource" @selection-change="handleSelect" @setdialog="setdialog" > </GTable>
</template>

<script>
export default {
  name:"list",
  props:{
    apiParams:{
      type:Object
    }
  },
  data(){
    return {
      columnSource:[
        {
          name:this.$t('config.shipper'),
          code:"storerKey",
          width:"100",
        },
        {
          name:this.$t('config.sku'),
          code:"sku",
          width:"100",
        },
        {
          name:this.$t('config.skuDesc'),
          code:"descr",
          width:"100",
        },
        {
          name:this.$t('model.loadingStatus'),
          code:"loadingStatus",
          width:"100",
        },
        {
          name:this.$t('in.totalpoqty'),
          code:"totalpoqty",
          width:"100",
        },
        {
          name:this.$t('in.packUnit'),
          code:"packUnit",
          width:"100",
        },
        {
          name:this.$t('model.loadingQty'),
          code:"loadingQty",
          width:"100",
        },
        {
          name:this.$t('model.workNo'),
          code:"workNo",
          width:"100",
        },
        {
          name:this.$t('config.deptLineNo'),
          code:"deliveryMklineNo",
          width:"100",
        },
      ],
    }
  },
  methods:{
    handleSelect(data){
      this.$emit('select',data)
    },
    setdialog(data){
      this.$emit('check',data)
    }
  }
}
</script>

<style>

</style>